package com.pinxiang.framework.weather.power.service.impl;

import com.pinxiang.framework.weather.power.mapper.MtHistoryDataMapper;
import com.pinxiang.framework.weather.power.model.MtHistoryData;
import com.pinxiang.framework.weather.power.service.IMtHistoryDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by spc on 2018/5/31.
 */
@Service
public class MtHistoryDataServiceImpl implements IMtHistoryDataService {
    @Autowired
    private MtHistoryDataMapper mtHistoryDataMapper;

    @Override
    public List<MtHistoryData> findAll(Map map) {
        return mtHistoryDataMapper.selectByParams(map);
    }

    @Override
    public int selectCountByParams(Map map) {
        return mtHistoryDataMapper.selectCountByParams(map);
    }

    @Override
    public List<MtHistoryData> selectByParams(Map<String, Object> parameters) {
        return mtHistoryDataMapper.selectByParams(parameters);
    }

    @Override
    public List<MtHistoryData> selectForDisplay(Map<String, Object> parameters) {
        return mtHistoryDataMapper.selectForDisplay(parameters);
    }

    @Override
    public List<MtHistoryData> selectForDisplayByTwoDays(Map<String, Object> parameters) {
        return mtHistoryDataMapper.selectForDisplayByTwoDays(parameters);
    }

    @Override
    public List<MtHistoryData> selectFFForDisplayByTwoDays(Map<String, Object> parameters) {
        return mtHistoryDataMapper.selectFFForDisplayByTwoDays(parameters);
    }
}
